package appapi.dao;

import appapi.Request.record.AnnxPageReq;
import appapi.Vo.record.AnnxPageListVo;
import appapi.entity.Zhongjiao.AnnexDto;
import appapi.entity.app.AnnexEntity;
import appapi.entity.bridge.vo.SafeReq;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;import java.util.Map;

/**
 * @author djq
 * @date 2023/5/23 15:07
 * @description:
 */

@Mapper
public interface AnnexMapper {
    int deleteByPrimaryKey(Long annexId);

    int insert(AnnexDto record);

    int insertSelective(AnnexDto record);

    AnnexDto selectByPrimaryKey(Long annexId);

    int updateByPrimaryKeySelective(AnnexDto record);

    int updateByPrimaryKey(AnnexDto record);

    List<Map<String, Object>> selectAnnexs(Long selfId, String annexType);

    List<AnnexDto> selectAllByRecId(@Param("annexType")String annexType,@Param("recId")Long recId);


    void insertList(List<AnnexEntity> addAnnex);

    List<Map<String, Object>> selectAnnexsrecId( @Param("onsiteRecId") String onsiteRecId);

    int deleteByRecId(@Param("annexTypeName") String annexTypeName,@Param("recIds") List<Long> recIds);

    //int deleteBySecId(@Param("annexTypeName") String annexTypeName,@Param("secId") List<Long> secIds);

    List<AnnxPageListVo>getList();

    List<AnnexDto> selectList();

    Integer getLikeMouth(String mouth);

    List<AnnexDto> selectAllByRecIds(@Param("annexType")String annexType,@Param("recId")Long recId);

    List<AnnexDto> selectAllByRecIdss(@Param("annexType")String annexType,@Param("recId")Long recId,@Param("mouth") String mouth);

    List<AnnxPageListVo> selecAllByRecIds(@Param("annexType")String annexType,@Param("recId")Long recId);
}